package com.leo.manage_system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 微信用户信息
 * </p>
 *
 * @author ${author}
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserWechat对象", description="微信用户信息")
public class UserWechat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "open_id")
    @TableId(value = "open_id", type = IdType.ID_WORKER)
    private String openId;

    @ApiModelProperty(value = "skey")
    private String skey;

    @ApiModelProperty(value = "最后登录时间")
    private Date lastVisitTime;

    @ApiModelProperty(value = "session_key")
    private String sessionKey;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "国")
    private String country;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "网名")
    private String nickName;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "创建时间", example = "2019-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间", example = "2019-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModify;

    @TableLogic
    private Integer isDeleted;

    private Integer version;


}
